<template>
  <div />
</template>

  <script>
  import request from '@/utils/request'
  export default {
    data() {
      return {
        loading: false,
        path: this.$route.query.path
      }
    },
    watch: {
    },
    mounted() {
    },
    created() {
      // 查询是否安装
      this.getJStoreInfo().then(res => {
        debugger
        if (res.code === 200 && res.data.state === 1) {
          this.$router.push({ path: '/jStore/appStore' })
        } else {
          this.$router.push({ path: '/appStoreInstall' })
        }
      }).catch(() => {
        this.$router.push({ path: '/appStoreInstall' })
      })
    },
    method() {
    },
    methods: {
      getJStoreInfo() {
        return request({
          url: '/jstore/getJStoreInfo',
          method: 'get'
        })
      }
    }
  }
  </script>

  <style scoped>

  </style>

